package ldh.im;

public class ImConfig {

    public static final byte SERVER_CODE = 0b1001;  // 9 表示服务端代码

    public static final byte CLIENT_CODE = 0B1111;  // 15 表示客户端代码

    public static final byte SERVER_VERSION = SERVER_CODE | 0B10000;  // 25 表示服务端version
    public static final byte CLIENT_VERSION = CLIENT_CODE | 0B10000;  // 31 表示客户端version

    public static final int SERVER_AUTH_LENGTH = 4;     // authCode长度

    public static final int VO_LENGTH = 2;              // 编码方式

    public static final int CLIENT_AUTH_LENGTH = 4;

    public static final int SERVER_HEAD_FIELD = 1 + SERVER_AUTH_LENGTH;

    public static final int CLIENT_HEAD_FIELD_LENGTH = 1 + CLIENT_AUTH_LENGTH;

    public static final String AUTH_CODE = "AUTH_CODE";
    public static final String AUTH_TOKEN = "AUTH_TOKEN";
    public static final String CHANNEL_ID = "CHANNEL_ID";

    public static final String USER_HASHCODE = "USER_HASHCODE"; // 用户hash值，用于分组处理
    public static final String USER_ID = "USER_ID";
}
